package com.yf.custom.aop;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @ClassName YfLogAction
 * @Description TODO
 * @Author yf
 * @Date 2018/10/15 17:32
 * @Version 1.0
 */
@RestController
public class YfLogAction {

    @YfLog
    @RequestMapping("testLog")
    public String testLog(@RequestParam Integer a){
        return "suc";
    }


    @RequestMapping("testLog2")
    public String testLog2(@RequestParam Integer a){
        return "suc2";
    }
}
